package com.bawei.common.adapter

import com.bawei.common.entity.BannerEntity
import com.bawei.image.GlideImgLoader
import com.youth.banner.adapter.BannerImageAdapter
import com.youth.banner.holder.BannerImageHolder

/**
 * Author: Jason Zhang
 * Date: 2024/12/16
 * Desc: 图片Banner2适配器
 */
class ImageBannerAdapter(data: MutableList<BannerEntity>) : BannerImageAdapter<BannerEntity>(data){
    override fun onBindView(holder: BannerImageHolder,data: BannerEntity,position: Int,size: Int) {
       GlideImgLoader.loadResImg(holder.imageView, data.resId, holder.imageView)
    }


}